import request from 'network/index'

//热门搜索区域
export function getHotAddressList(params) {
  return request({
    url: "/hot/address",
    params
  })
}

//历史搜索区域
export function getHistorySearchList(id) {
  return request({
    url: "/record/" + id,
  })
}

//添加历史记录
export function addHistorySearch(data) {
  return request({
    method: "post",
    url: "/record",
    data
  })
}

//删除历史记录
export function deleteHistory(data){
  return request({
    method:"delete",
    url:"/record",
    data
  })
}